<template>
  <div class="box">
    <h2>Event2组件</h2>
    <button @click="$emit('xxx', 'atguigu')">分发自定义的xxx事件</button>
    <button @click="$emit('click', {name: 'tom'})">分发自定义的click事件</button>
    <el-button @click="$emit('increment', 5)">分发自定义事件更新父组件数据</el-button>
  </div>
</template>
